<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml" xmlns:shiro="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header">
    <style>
        .export{
            border:1px solid red;
        }
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="fixed-table-toolbar">

                    <div class="export">
                        <div class="columns pull-left col-md-1.5 nopadding" >
                            <input id="numPeriods" type="number" class="form-control"
                                   placeholder="请输入考核期数">
                        </div>
                        <div class="columns pull-left">
                            <select shiro:hasPermission="jzweb:trainingCertificates:import" id="cprofileIdExport" class="form-control">
                                <option value="">请选择培训证书</option>
                                <option th:each="item : ${cprofileIds}" th:value="${item.id}"
                                        th:text="${item.name}"></option>
                            </select>
                        </div>

                        <div class="columns pull-left" style="margin-left:4px">
                            <select  id="year" name="year" class="form-control">
                                <option value="">请选择年份</option>
                                <option value="2019">2019</option>
                                <option value="2020">2020</option>
                                <option value="2021">2021</option>
                                <option value="2022">2022</option>
                                <option value="2023">2023</option>
                                <option value="2024">2024</option>
                                <option value="2025">2025</option>
                            </select>
                        </div>

                        <div class="columns pull-left" style="margin-left:4px">
                            <select  id="cType" name="cType" class="form-control">
                                <option value="">请选择导出专家类型</option>
                                <option value="0">师资</option>
                                <option value="1">考评员</option>
                                <option value="2">考务技术员</option>
                                <option value="3">考务技术员-结业证书</option>
                                <option value="4">督导员</option>
                                <option value="5">督导员-结业证书</option>
                                <option value="6">高级师资</option>
                                <option value="7">高级考评员</option>
                                <option value="8">种子师资</option>
                                <option value="9">公益师资</option>
                                <option value="10">优秀学员</option>
                                <option value="11">综合公益师资</option>
                                <option value="12">健康财富规划公益师资</option>
                                <option value="13">优秀培训教师</option>
                                <option value="14">优秀考务工作者</option>
                                <option value="15">特殊贡献奖</option>
                                <option value="17">1+X产后恢复师资培训证书（中级）</option>
                                <option value="18">1+X产后恢复师资培训证书（高级）</option>
                                <option value="19">1+X幼儿照护师资培训证书（中级）</option>
                                <option value="20">1+X幼儿照护师资培训证书（高级）</option>
                                <option value="22">婴幼儿教学能力提升证书</option>
                                <option value="23">教研能力提升证书</option>
                                <option value="24">家庭教育指导师结业证书</option>
                                <option value="25">教学能力比赛研修班</option>
                                <option value="26">教学能力比赛备赛培训班</option>

                                <option value="90">产教融合理事长证书</option>
                                <option value="91">产教融合副理事长证书</option>
                                <option value="92">产教融合常务理事长证书</option>
                                <option value="93">产教融合常务副理事长证书</option>
                                <option value="94">产教融合秘书长证书</option>
                                <option value="95">产教融合副秘书长证书</option>
                                <option value="96">产教融合理事证书</option>
                                <option value="97">金砖大赛志愿者证书</option>
                                <option value="111">实践项目结业证书</option>
                                <option value="101">整理归纳证书</option>
                                <option value="102">职业技能师资证书</option>
                                <option value="103">优秀案例</option>
                                <option value="104">优秀组织管理</option>
                            </select>
                        </div>

                        <div class="columns pull-left" style="margin-left:4px">
                            <select shiro:hasPermission="jzweb:trainingCertificates:import" id="region" name="region" class="form-control">
                                <option value="">请选择省份</option>
                                <option value="11">北京市</option>
                                <option value="12">天津市</option>
                                <option value="13">河北省</option>
                                <option value="14">山西省</option>
                                <option value="15">内蒙古</option>
                                <option value="21">辽宁省</option>
                                <option value="22">吉林省</option>

                                <option value="23">黑龙江</option>
                                <option value="31">上海市</option>
                                <option value="32">江苏省</option>
                                <option value="33">浙江省</option>
                                <option value="34">安徽省</option>
                                <option value="35">福建省</option>
                                <option value="36">江西省</option>
                                <option value="37">山东省</option>

                                <option value="41">河南省</option>
                                <option value="42">湖北省</option>
                                <option value="43">湖南省</option>
                                <option value="44">广东省</option>
                                <option value="45">广西省</option>
                                <option value="46">海南省</option>

                                <option value="50">重庆市</option>
                                <option value="51">四川省</option>
                                <option value="52">贵州省</option>
                                <option value="53">云南省</option>
                                <option value="54">西藏</option>

                                <option value="61">山西省</option>
                                <option value="62">甘肃省</option>
                                <option value="63">青海省</option>
                                <option value="64">宁夏</option>
                                <option value="65">新疆</option>

                                <option value="66">新疆兵团</option>
                                <option value="71">台湾</option>
                                <option value="81">香港</option>
                                <option value="82">台湾</option>
                                <option value="91">海外</option>
                            </select>
                        </div>
                        <button shiro:hasPermission="jzweb:trainingCertificates:import" type="button"
                                class="btn  btn-success"
                                onclick="exportExcelModel()">
                            <i class="fa fa-download" aria-hidden="true"></i>导出PDF
                        </button>
                    </div>

                   <div class="import" style="margin-top:10px;">

                       <div class="columns pull-left">
                           <select shiro:hasPermission="jzweb:trainingCertificates:import" id="cprofileId" class="form-control">
                               <option value="">请选择培训证书</option>
                               <option th:each="item : ${cprofileIds}" th:value="${item.id}"
                                       th:text="${item.name}"></option>
                           </select>
                       </div>
                       <div class="columns pull-left" style="margin-left:4px">
                           <select shiro:hasPermission="jzweb:trainingCertificates:import" id="cTypeImport" name="cTypeImport" class="form-control">
                               <option value="">请选择导入专家类型</option>
                               <option value="0">师资</option>
                               <option value="1">考评员</option>
                               <option value="2">考务技术员</option>
                               <option value="3">考务技术员-结业证书</option>
                               <option value="4">督导员</option>
                               <option value="5">督导员-结业证书</option>
                               <option value="6">种子师资</option>
                               <option value="7">公益师资</option>
                               <option value="8">优秀学员</option>
                               <option value="9">综合公益师资</option>
                               <option value="10">健康财富规划公益师资</option>
                               <option value="11">优秀培训教师</option>
                               <option value="12">优秀考务工作者</option>
                               <option value="13">特殊贡献奖</option>
                               <option value="14">金职大讲堂-结业证书</option>
                               <option value="15">金职大讲堂-优秀组织单位</option>
                               <option value="16">公益讲座-优秀学员</option>
                               <option value="17">1+X产后恢复师资培训证书（中级）</option>
                               <option value="18">1+X产后恢复师资培训证书（高级）</option>
                               <option value="19">1+X幼儿照护师资培训证书（中级）</option>
                               <option value="20">1+X幼儿照护师资培训证书（高级）</option>
                               <option value="21">素质提高计划(幼儿照护1+X中级证书)</option>
                               <option value="22">婴幼儿教学能力提升证书</option>
                               <option value="23">教研能力提升证书</option>
                               <option value="24">家庭教育指导师结业证书</option>
                               <option value="25">教学能力比赛研修班</option>
                               <option value="26">教学能力比赛备赛培训班</option>

                               <option value="90">产教融合理事长证书</option>
                               <option value="91">产教融合副理事长证书</option>
                               <option value="92">产教融合常务理事长证书</option>
                               <option value="93">产教融合常务副理事长证书</option>
                               <option value="94">产教融合秘书长证书</option>
                               <option value="95">产教融合副秘书长证书</option>
                               <option value="96">产教融合理事证书</option>
                               <option value="97">金砖大赛志愿者证书</option>
                               <option value="111">实践项目结业证书</option>
                               <option value="101">整理归纳证书</option>
                               <option value="102">职业技能师资证书</option>
                               <option value="103">优秀案例</option>
                               <option value="104">优秀组织管理</option>
                           </select>
                       </div>
                       <div class="columns pull-left">
                               <input id="dateAdd" name="dateAdd" style="width:200px"  class="form-control" type="text"
                                      onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="请输入证书落款时间">
                       </div>
                       <div class="columns pull-left" style="margin-left:4px">
                           <form shiro:hasPermission="jzweb:trainingCertificates:import" id="importExcelForm" method="post"
                                 enctype="multipart/form-data">
                               <input class="form-control" style="width:200px" name="file" id="fileUrl" type="file">
                           </form>
                       </div>
                           <button shiro:hasPermission="jzweb:trainingCertificates:import" type="button"
                                   class="btn  btn-success"
                                   onclick="downExcelModel('/jzweb/trainingCertificates/downloadImportTemplate')">
                               <i class="fa fa-download" aria-hidden="true"></i>下载导入模板
                           </button>
                           <button shiro:hasPermission="jzweb:trainingCertificates:import" type="button"
                                   class="btn  btn-success"
                                   onclick="importExcel1($('#fileUrl'),$('#importExcelForm'),$('#dateAdd').val(),$('#cprofileId').val(),$('#cTypeImport').val(),'/jzweb/trainingCertificates/import')">
                               <i class="fa fa-upload" aria-hidden="true"></i>导入
                           </button>
                       <button shiro:hasPermission="jzweb:trainingCertificates:import" type="button"
                               class="btn  btn-success"
                               onclick="importExcel2($('#fileUrl'),$('#importExcelForm'),$('#dateAdd').val(),$('#cprofileId').val(),$('#cTypeImport').val(),'/jzweb/trainingCertificates/importHead')">
                           <i class="fa fa-upload" aria-hidden="true"></i>存照导入
                       </button>
                   </div>

                    <div class="find" style="margin-top:10px;">
                        <div class="columns pull-left">
                            <input id="numbers" type="text" class="form-control"
                                   placeholder="请输入证书编号">
                        </div>
                        <div class="columns pull-left">
                            <input id="coursesName" type="text" class="form-control"
                                   placeholder="请输入课程名">
                        </div>
                        <div class="columns pull-left">
                            <input id="searchName" type="text" class="form-control"
                                   placeholder="请输入会员名">
                        </div>
                        <div class="columns pull-left">
                            <select id="searchState" name="searchState" class="form-control">
                                <option value="">请选择</option>
                                <option value="0">正常</option>
                                <option value="1">无效</option>
                                <option value="9">已删除</option>
                            </select>
                        </div>

                        <div class="columns pull-left">
                            <input id="getTime" name="dateAdd" style="width:150px"  class="form-control" type="text"
                                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="请输入获证时间">
                        </div>

                        <div class="columns pull-left">
                            <input id="getTime2" name="dateAdd" style="width:150px"  class="form-control" type="text"
                                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="请输入获证时间">
                        </div>

                        <div class="columns pull-left">
                            <button class="btn btn-success" onclick="reLoad()">查询</button>
                        </div>
                    </div>
                    <button shiro:hasPermission="jzweb:trainingCertificates:batchRemove" type="button" class="btn  btn-danger"
                            onclick="batchRemove()">
                        <i class="fa fa-trash" aria-hidden="true"></i>删除
                    </button>
                    <button shiro:hasPermission="jzweb:trainingCertificates:batchRemove" type="button" class="btn  btn-danger"
                            onclick="batchStart()">
                        <i class="fa fa-trash" aria-hidden="true"></i>批量启用
                    </button>
                    <button shiro:hasPermission="jzweb:trainingCertificates:batchRemove" type="button" class="btn  btn-danger"
                            onclick="batchClose()">
                        <i class="fa fa-trash" aria-hidden="true"></i>批量禁用
                    </button>



                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>
<!--shiro控制bootstraptable行内按钮看见性 -->
<div>
    <script type="text/javascript">
        var s_edit_h = 'hidden';
        var s_remove_h = 'hidden';
        var s_resetPwd_h = 'hidden';
    </script>
</div>
<div shiro:hasPermission="jzweb:trainingCertificates:edit">
    <script type="text/javascript">
        s_edit_h = '';
    </script>
</div>
<div shiro:hasPermission="jzweb:trainingCertificates:remove">
    <script type="text/javascript">
        var s_remove_h = '';
    </script>
</div>
<div shiro:hasPermission="jzweb:trainingCertificates:resetPwd">
    <script type="text/javascript">
        var s_resetPwd_h = '';
    </script>
</div>
</div>
<div th:include="include :: footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/trainingCertificates/trainingCertificates.js"></script>
</body>
</html>